import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2023 -04 -29
 * Time: 23:03
 */
public class Main {
    public static void main(String[] args) {
        GeoGraph [] p = new GeoGraph[]{
                new Circle(4),
                new Rectangle(12,8),
                new SemiCircle(12),
                new Triangle(6,4,3,5),
                new Trapezoid(3,5,2,2,4),
                new Oval(14,12)

        };
        Arrays.sort(p);
        for(int i = 0;i < 6;i++) {
            System.out.println(p[i]);
        }

    }
}
